<div class="wpui_subforum">
    <div class="wpui_subforum_title"><span>{lang forum_subforums}</span></div>
    <div class="wpui_subforum_list">
        <ul>
            <!--{loop $sublist $sub}-->
            <!--{eval $forumurl = !empty($sub['domain']) && !empty($_G['setting']['domain']['root']['forum']) ? $_G['scheme'].'://'.$sub['domain'].'.'.$_G['setting']['domain']['root']['forum'] : 'forum.php?mod=forumdisplay&fid='.$sub['fid'];}-->
            <li>
                <div class="wpui_subforum_icon">
					<!--{if $sub[icon]}-->
						$sub[icon]
					<!--{else}-->
					<img src="$_G['style'][styleimgdir]/forum/forum_band.png" alt="$sub[name]" />
					<!--{/if}-->
                </div>
                <dl>
                    <dt>
                        <a href="$forumurl" target="_blank">$sub[name]</a>
                        <!--{if $sub[todayposts] && !$sub['redirect']}--><em title="{lang forum_todayposts}"> ($sub[todayposts])</em><!--{/if}-->
                    </dt>
                    <dd>
						<!--{if $sub[description]}-->
						<p>$sub[description]</p>
						<!--{else}-->
						<!--{if empty($sub[redirect])}--><em>{lang forum_threads}: <!--{echo dnumber($sub[threads])}--></em><em>{lang forum_posts}: <!--{echo dnumber($sub[posts])}--></em><!--{/if}-->	
						<!--{/if}-->
                        
                    </dd>
                    <dd>
                        <!--{if $sub['permission'] == 1}-->
                            {lang private_forum}
                        <!--{else}-->
                            <!--{if $sub['redirect']}-->
                                <a href="$forumurl" class="xi2">{lang url_link}</a>
                            <!--{elseif is_array($sub['lastpost'])}-->
                                <!--{if $_G['forum']['forumcolumns'] < 3}-->
                                    <a href="forum.php?mod=redirect&tid=$sub[lastpost][tid]&goto=lastpost#lastpost" class="xi2"><!--{echo cutstr($sub[lastpost][subject], 30)}--></a> <cite>$sub[lastpost][dateline] <!--{if $sub['lastpost']['author']}-->$sub['lastpost']['author']<!--{else}-->$_G[setting][anonymoustext]<!--{/if}--></cite>
                                <!--{else}-->
                                    <a href="forum.php?mod=redirect&tid=$sub[lastpost][tid]&goto=lastpost#lastpost">{lang forum_lastpost}: $sub[lastpost][dateline]</a>
                                <!--{/if}-->
                            <!--{else}-->
                                {lang never}
                            <!--{/if}-->
                        <!--{/if}-->
                        <!--{hook/forumdisplay_subforum_extra $sub['fid']}-->
                    </dd>
                </dl>
            </li>
            <!--{/loop}-->
            <!--{hook/forumdisplay_subforum_extra $sub['fid']}-->
        </ul>
    </div>
</div>